Create Relationships and Domains
Use relationships and domains to define how data is connected and standardized across your model. Relationships define how entities or tables are related to one another. Domains standardize definitions for reused attributes or columns. Creating both helps enforce business rules and maintain consistency across the model.
Scenario: Connecting and Standardizing Lead‑to‑Cash Data
In this walkthrough, you start with a model that already contains the Customer, Order, and Invoice entities. You create relationships to show how these entities are connected, and then create a domain to standardize the CustomerId attribute across the model.
By the end of this walkthrough, you will have:
-
Created relationships between Customer and Order, and between Order and Invoice
-
Created a reusable CustomerId domain
-
Applied the domain to relevant attributes
-
Reviewed the model to confirm that the structure and definitions are consistent
Create Relationships
You can create relationships in Diagram View or from Model Explorer. Both methods produce the same result.
Create Relationships from the Toolbar
Use this method to create relationships directly in Diagram View.
-
Open your data model.
The model opens in Diagram View.
-
On the toolbar, select
.A list of relationship types appears.
-
Select the relationship type that you want to create. For example, Identifying.
-
Select the parent entity (Customer), and then drag to the child entity (Order).
The relationship is created between Customer and Order and appears as a connecting line in the diagram.
-
Select the relationship line to view or update its properties in the Properties pane.
-
Repeat the same steps to create the relationship between Order and Invoice.
The relationships are now visible in Diagram View, where you can review their connections and properties.
Create Relationships from Model Explorer
Use this method to create relationships from Model Explorer.
-
In the Model Explorer, select Relationships.
-
Select
next to the Relationships, and then select Create New.The New Relationship dialog box appears.
-
In the Parent list, select Customer.
-
In the Child list, select Order.
-
In the Relationship Type list, select the appropriate type.
-
Select Confirm.
The new relationship (R/10) appears under Relationships in Model Explorer.
-
Repeat these steps to create the relationship between Order and Invoice.
To display the relationship in the diagram:
-
Select
next to the R/10 relationship. -
Select Add to Diagram.
The relationship is now visible in Diagram View.
Create Domains
After you create relationships, define shared attributes consistently across the model.
For example:
-
CustomerId might appear in the Customer entity.
-
The same identifier might also be used in Order or other related entities.
Instead of defining the attribute separately in each entity, create a domain and apply it wherever the attribute is reused.
Domains define reusable rules for attributes, such as data type, length, and naming standards.
To create a domain, follow these steps:
-
In the Model Explorer, select Domains.
-
Select
next to Domains, and then select Create Domain. -
Define the domain.
For example, create a domain named CustomerId and specify its data type and length.
-
Save the domain.
The new domain appears under Domains in Model Explorer and is available to assign to attributes.
Apply Domains to Attributes
After you create the domain, apply it to the relevant attributes in each entity.
-
Open an entity such as Customer, Order, or Invoice.
-
Select the attribute that should use the domain.
For example, select CustomerId.
-
In the Properties pane, assign the CustomerId domain.
-
Repeat these steps for other entities that use the same attribute.
The selected attributes now share the same domain definition, which helps keep the model consistent.
Review and Validate the Model
After you create relationships and domains, review the model in Diagram View to confirm that the entities are connected correctly and that shared attributes are used consistently across the model.
For example, the following screenshot shows the Customer, Order, and Invoice entities in Diagram View. This view helps illustrate the overall Lead-to-Cash flow and shows how shared attributes such as CustomerId are used across related entities.
Use the diagram to verify the following:
-
The Customer → Order → Invoice flow is clear.
-
The entities are connected as expected.
-
Shared attributes such as CustomerId appear in the appropriate entities.
-
The relationship lines align with the business flow shown in the model.
This review helps ensure consistency across the model.